<h1>学生信息</h1>

<table>
  <tr>
    <th>姓名</th>
    <th>类型</th>
    <th>简介</th>
  </tr>

  <% for student in @students %>
    <tr>
      <td><%=h student.sname %></td>
      <td><%=h student.stype %></td>
      <td><%=h student.sresume %></td>
      <td><%= link_to '详细', student %></td>
      <td><%= link_to '编辑', edit_student_path(student) %></td>
      <td><%= link_to '删除', student, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<br />

<%= link_to '添加学生', new_student_path %>
